﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NewStdMasterPage.Master" AutoEventWireup="true" CodeBehind="UserDetails.aspx.cs" Inherits="AteneoLibri.UserDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>
        <asp:Label ID="lblUserName" runat="server"></asp:Label>
    </h2>
    <asp:Label ID="lblUniversity" runat="server" ForeColor="Blue" Font-Size="Medium">Nessuna università selezionata nel profilo</asp:Label>
    <br />
    <asp:Label ID="lblFaculty" runat="server" ForeColor="Blue" Font-Size="Medium">Nessuna facoltà selezionata nel profilo</asp:Label>
    <br /><br />
<%--    <div>
        <table>
            <tr>
                <td>Utente</td>
                <td><asp:Label ID="lblUserName" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td>Università</td>
                <td><asp:Label ID="lblUniversity" runat="server">Nessuna università selezionata nel profilo</asp:Label></td>
            </tr>
            <tr>
                <td>Facoltà</td>
                <td><asp:Label ID="lblFaculty" runat="server">Nessuna facoltà selezionata nel profilo</asp:Label></td>
            </tr>
        </table>
    </div>--%>    
    <div class="LandscapeDataVisualization">
        <asp:DataList ID="dlLibrary" runat="server" BackColor="#FFFFFF" DataKeyField="IdBook"
            RepeatDirection="Horizontal" RepeatColumns="2" EnableViewState="false">
            <HeaderTemplate>
                <h3>
                    Elenco dei libri dell'utente che ti possono interessare</h3>
            </HeaderTemplate>
            <ItemTemplate>
                <a class="orange" href='/BookDetails.aspx?IdBook=<%# Eval("IdBook") %>'>
                    <%# Eval("Title") %>
                    <div class="tile-price">
                        <%# Eval("SellingPrice", "{0:C}") %>
                    </div>
                </a>

                <%--<div class="BookTileBox">
                    <div class="BookContentBox">
                        <div class="BookIcon">
                            <asp:ImageButton ID="btnDetails" runat="server" CssClass="metroButton" AlternateText="Dettagli"
                                ImageUrl="~/Images/buttons/Next.png" OnClick="btnDetails_Click" CommandArgument='<%# Eval("IdBook") %>' />
                        </div>
                        <div class="BookTitleBox">
                            <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                        </div>
                        <div class="BookPriceBox">
                            <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("SellingPrice", "{0:C}") %>'></asp:Label>
                        </div>
                        <div>
                            Autore/i:
                            <asp:Label ID="lblAuthors" runat="server" Text='<%# Eval("Author") %>'></asp:Label>
                        </div>                        
                    </div>
                    <div class="BookDateBox">
                        Data inserimento libro:
                        <asp:Label ID="lblInsertDate" runat="server" Text='<%# Eval("InsertDate", "{0:d}") %>'></asp:Label>
                    </div>
                </div>--%>
            </ItemTemplate>
            <SeparatorTemplate>
            </SeparatorTemplate>
            <FooterTemplate>
            </FooterTemplate>
        </asp:DataList>
    </div>
    <div class="PortraitDataVisualization">
        <asp:DataList ID="dlLibraryPortrait" runat="server" BackColor="#FFFFFF" DataKeyField="IdBook"
            RepeatDirection="Vertical" RepeatColumns="1" EnableViewState="false">
            <HeaderTemplate>
                <h3>
                    Elenco dei libri dell'utente che ti possono interessare</h3>
            </HeaderTemplate>
            <ItemTemplate>
                <a class="orange" href='/BookDetails.aspx?IdBook=<%# Eval("IdBook") %>'>
                    <%# Eval("Title") %>
                    <div class="tile-price">
                        <%# Eval("SellingPrice", "{0:C}") %>
                    </div>
                </a>

                <%--<div class="BookTileBox">
                    <div class="BookContentBox">
                        <div class="BookIcon">
                            <asp:ImageButton ID="btnDetails" runat="server" CssClass="metroButton" AlternateText="Dettagli"
                                ImageUrl="~/Images/buttons/Next.png" OnClick="btnDetails_Click" CommandArgument='<%# Eval("IdBook") %>' />
                        </div>
                        <div class="BookTitleBox">
                            <asp:Label ID="lblTitle" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                        </div>
                        <div class="BookPriceBox">
                            <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("SellingPrice", "{0:C}") %>'></asp:Label>
                        </div>
                        <div>
                            Autore/i:
                            <asp:Label ID="lblAuthors" runat="server" Text='<%# Eval("Author") %>'></asp:Label>
                        </div>                        
                    </div>
                    <div class="BookDateBox">
                        Data inserimento libro:
                        <asp:Label ID="lblInsertDate" runat="server" Text='<%# Eval("InsertDate", "{0:d}") %>'></asp:Label>
                    </div>
                </div>--%>
            </ItemTemplate>
            <SeparatorTemplate>
            </SeparatorTemplate>
            <FooterTemplate>
            </FooterTemplate>
        </asp:DataList>
    </div>
    <asp:Panel ID="pnlNoBooks" runat="server" Visible="false">
        L'utente non ha altri libri in vendita.
    </asp:Panel>
</asp:Content>
